package nj.yb.entity.request;

import com.alibaba.fastjson.annotation.JSONField;
import jdk.nashorn.internal.objects.annotations.Getter;

/**
 * 登录注册请求的实体类
 */


public class AuthRequest {
    @JSONField(ordinal = 1)
    private String type;
    @JSONField(ordinal = 2)
    private String username;
    @JSONField(ordinal = 3)
    private String password;
    @JSONField(ordinal = 4)
    private String nickname;

    public AuthRequest(String type, String username, String password, String nickname) {
        this.type = type;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }

    public AuthRequest() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "AuthRequest{" +
                "type='" + type + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
